/**
 *****************************************************************************
 * @file    base_address.h
 * @brief    -
 *
 * Copyright (C) RealMega 2019-2020
 *
 *****************************************************************************
*/
#ifndef __BASE_ADDRESS_H__
#define __BASE_ADDRESS_H__

//APB0

#define REG_TIMER_BASE              0x40101000
#define REG_KEYPAD_BASE             0x40102000
#define REG_PAGE_SPY_BASE           0x40103000
#define REG_PWM_BASE                0x40104000
#define REG_QDEC_BASE               0x40105000
#define REG_CALENDAR_BASE           0x40106000
#define REG_PMU_IF_BASE           	0x40107000
#define REG_RF_DIG_BASE             0x40108000
#define REG_CM0P_BASE               0x40109000
#define REG_TRAP_BASE               0x4010A000
#define REG_IOMUX_BASE              0x4010B000
#define REG_CLK_RST_BASE            0x4010C000
#define REG_AON_TIMER_BASE          0x4010D000
#define REG_AON_SLEEP_BASE          0x4010E000
#define REG_AON_BASE                0x4010F000
#define REG_SYS_CTRL_BASE           0x40110000
#define REG_AUDIO_CODEC_BASE        0x40111000
#define REG_AUDIO_DMA_BASE          0x40112000
#define REG_AUDIO_IF_BASE           0x40113000


//APB1
#define REG_MDU_TOP_BASE            0x40200000
#define REG_UART_BASE               0x40201000
#define REG_IR_BASE                 0x40202000
#define REG_GPT_BASE                0x40203000
#define REG_SPI_BASE         		0x40204000
#define REG_SYS_IFC_BASE            0x40205000
#define REG_I2C_BASE                0x40206000
#define REG_DBM_BASE                0x40207000
#define REG_MODEM_BASE              0x40208000
#define REG_BT_CORE_BASE            0x40209000
#define REG_DMA_BASE                0x4020A000
#define REG_DEBUG_UART_BASE         0x4020B000
#define REG_DEBUG_HOST_BASE         0x4020F000



#define REG_BT_LINK_BASE            0x40000000
#define REG_BT_EM_BASE              0x40010000

#define REG_SPI_FLASH_BASE          0x40300000
#define REG_AHB_CACHE_BASE          0x40301000
#define REG_GPIO_BASE          		0x40400000


#endif


